package com.monkey.model.user;

import com.monkey.core.ErrorCode;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/17.
 */
public class UserRegisterData {
    private boolean ret;
    private String msg;
    private int code;
    private Integer userid;

    public UserRegisterData(int code) {
        this(false, code, 0);
    }

    public UserRegisterData(boolean ret, int code, Integer userid) {
        this.ret = ret;
        this.msg = ErrorCode.getMsg(code);
        this.code = code;
        this.userid = userid;
    }

    public boolean isRet() {
        return ret;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    public Integer getUserid() {
        return userid;
    }
}
